package my.service;

import java.sql.SQLException;
import java.util.List;

import my.bean.Admin;

public interface IAdminService {

	int add(Admin admin) throws SQLException;

	int deleteAdminById(int userId) throws SQLException;

	int modify(Admin admin) throws SQLException;

	int modifyPassword(Admin admin) throws SQLException;

	List<Admin> findAll();

	Admin findByAdminAccount(String account);

	Admin findByAdminId(int adminId);

	Admin findByAccountAndPassword(String account, String password);

}
